//
//  AppDelegate.swift
//  新浪微博
//
//  Created by mac on 15/10/7.
//  Copyright © 2015年 mac. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        // 设置全局外观
        setAppearance()
        
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.whiteColor()
        
        // 设置根控制器
        window?.rootViewController = MainController()
        
        // 显示
        window?.makeKeyAndVisible()
        
        return true
    }
    
    /// 设置显示
    private func setAppearance() {
    
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        UITabBar.appearance().tintColor = UIColor.orangeColor()
        
    }
}

